import Taro, { Component } from '@tarojs/taro'
import {View,Text,Image} from '@tarojs/components'
import './index.css'
import { AtInput,AtGrid, AtList, AtListItem,AtTabs, AtTabsPane } from 'taro-ui'
import { $navigateTo, $redirectTo, getGlobalData, $navigateBack } from '../../../global';
import app from '../../../main.js'
export default class index extends Component {
  config = {
    navigationBarTitleText: '订单列表'
  }
wenzhen=()=>{
  $navigateTo("../wenzhenxiangqing/index")
}
guahao=()=>{
  $navigateTo("../guahaoxiangqing/index")
}
shoushu=()=>{
  $navigateTo("../shoushuxiangqing/index")
}
  componentWillMount () { }

  componentDidMount () { }

  componentWillUnmount () { }

  componentDidShow () { }

  componentDidHide () { }
  constructor () {
    super(...arguments)
    this.state = {
      value: '',
      current: 0,
    }
  }
  handleChange (value) {
    this.setState({
      value,
      current: value
    })
  }
  handleClick (value) {
    this.setState({
      current: value
    })
  }
  render () {
    const tabList = [{ title: '问诊订单' }, { title: '挂号订单' }, { title: '手术订单' }]
    return (
    <View className='index'>
  <View>
  <AtTabs current={this.state.current} tabList={tabList} onClick={this.handleClick.bind(this)}>
        <AtTabsPane current={this.state.current} index={0} >
          <View onClick={this.wenzhen}><AtList>
  <AtListItem 
    title='黄小梦 主治医生 未完成'
    note='广州人民医院眼科室'
    extraText='￥100'
    arrow='right'
    thumb={getGlobalData('baseurl')+'img/f1a7bb42f305db8d62dcf88e7d29a618.jpg'}
  />
  <AtListItem
    title='李小红 主治医生 已结束'
    note='广州人民医院外科室'
    arrow='right'
    extraText='￥100'
    thumb={getGlobalData('baseurl')+'img/d4a445420c94364b483704e29dc568d9.jpg'}
  />
  
</AtList></View>
        </AtTabsPane>
        <AtTabsPane current={this.state.current} index={1}>
          <View onClick={this.guahao}><AtList>
  <AtListItem 
    title='黄小梦 主治医生 未完成'
    note='广州人民医院眼科室'
    extraText='￥100'
    arrow='right'
    thumb={getGlobalData('baseurl')+'img/f1a7bb42f305db8d62dcf88e7d29a618.jpg'}
  />
  <AtListItem
    title='李小红 主治医生 已结束'
    note='广州人民医院外科室'
    extraText='￥100'
    arrow='right'
    thumb={getGlobalData('baseurl')+'img/d4a445420c94364b483704e29dc568d9.jpg'}
  />
  
</AtList>
</View>
        </AtTabsPane>
        <AtTabsPane current={this.state.current} index={2}>
          <View><AtList>
  <AtListItem onClick={this.shoushu}
    title='黄小梦 主治医生 未完成'
    note='广州人民医院眼科室'
    extraText='￥10000'
    arrow='right'
    thumb={getGlobalData('baseurl')+'img/f1a7bb42f305db8d62dcf88e7d29a618.jpg'}
  />
  <AtListItem
    title='李小红 主治医生 已结束'
    note='广州人民医院外科室'
    extraText='￥5000'
    arrow='right'
    thumb={getGlobalData('baseurl')+'img/d4a445420c94364b483704e29dc568d9.jpg'}
  />
  
</AtList></View>
        </AtTabsPane>
      </AtTabs>
</View>

<View>

</View>
    </View>
    )
    
  }
  

}

